package officeserver.report;

import java.io.Serializable;

public class VitalSigns implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private int bPsystolic;

    private int bPdiastolic;

    private double temperature;

    private int pulse;

    private double weight;

    private double height;

    /**
     * Creates a new Vital Signs report
     * 
     * @param bPsystolic
     *            creates new bPsystolic for Vital Signs
     * @param bPdiastolic
     *            creates new bPdiastolic for Vital Signs
     * @param temperature
     *            creates new temperature for Vital Signs
     * @param pulse
     *            creates a new pulse for Vital Signs
     * @param weight
     *            creates weight for Vital Signs
     * @param height
     *            creates new height
     */
    public VitalSigns(int bPsystolic, int bPdiastolic, double temperature,
	    int pulse, double weight, double height) {
	this.bPsystolic = bPsystolic;
	this.bPdiastolic = bPdiastolic;
	this.temperature = temperature;
	this.pulse = pulse;
	this.weight = weight;
	this.height = height;
    }

    /**
     * gets bPsystolic
     * 
     * @return bPsystolic
     */
    public int getbPsystolic() {
	return bPsystolic;
    }

    /**
     * sets bPsystolic
     * 
     * @param bPsystolic
     */
    public void setbPsystolic(int bPsystolic) {
	this.bPsystolic = bPsystolic;
    }

    /**
     * gets bPdiastolic
     * 
     * @return bPdiastolic
     */
    public int getbPdiastolic() {
	return bPdiastolic;
    }

    /**
     * sets bPdiastolic
     * 
     * @param bPdiastolic
     */
    public void setbPdiastolic(int bPdiastolic) {
	this.bPdiastolic = bPdiastolic;
    }

    /**
     * gets temperature
     * 
     * @return temperature
     */
    public double getTemperature() {
	return temperature;
    }

    /**
     * sets temperature
     * 
     * @param temperature
     */
    public void setTemperature(double temperature) {
	this.temperature = temperature;
    }

    /**
     * gets pulse
     * 
     * @return pulse
     */
    public int getPulse() {
	return pulse;
    }

    /**
     * sets pulse
     * 
     * @param pulse
     */
    public void setPulse(int pulse) {
	this.pulse = pulse;
    }

    /**
     * gets weight
     * 
     * @return weight
     */
    public double getWeight() {
	return weight;
    }

    /**
     * sets weight
     * 
     * @param weight
     */
    public void setWeight(double weight) {
	this.weight = weight;
    }

    /**
     * gets height
     * 
     * @return height
     */
    public double getHeight() {
	return height;
    }

    /**
     * sets height
     * 
     * @param height
     */
    public void setHeight(double height) {
	this.height = height;
    }

    /**
     * Creates a clone of the VitalSign for passing it around
     * 
     * @return new VitalSigns
     */
    public VitalSigns clone() {
	return new VitalSigns(bPsystolic, bPdiastolic, temperature, pulse,
		weight, height);
    }

    /**
     * Updates the vital signs given new informations that are field out in
     * update
     * 
     * @param update
     *            VitalSigns object with the newest information
     */
    public void updateVitalSigns(VitalSigns update) {
	this.bPsystolic = update.getbPsystolic();
	this.bPdiastolic = update.getbPdiastolic();
	this.temperature = update.getTemperature();
	this.pulse = update.getPulse();
	this.weight = update.getWeight();
	this.height = update.getHeight();
    }
}